home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 September / macformat-004.iso / Shareware City / Graphics / VideoToolbox ƒ / VideoToolboxSources / ATMInterface.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-07  |  1.7 KB  |  80 lines  |  [TEXT/KAHL]

  1. /*
  2.  * ATMInterface.h
  3.  *
  4.  * Version 1.01
  5.  *
  6.  * Adobe Type Manager is a trademark 
  7.  * of Adobe Systems Incorporated.
  8.  */
  9.  
  10. #define int16 short
  11. #define int32 long
  12.  
  13. #define _H_ATMInterface
  14.  
  15. #include <Devices.h>
  16. #include <Types.h>
  17. typedef struct
  18.     {
  19.     Fixed a, b, c, d, tx, ty;
  20.     } FixedMatrix;
  21.  
  22. #define ATMProcs3Version 3
  23. typedef struct
  24.     {
  25.     long version;
  26.     int16 (*fontAvailable)(int16 family,
  27.          int16 style);
  28.     int16 (*showText)(char *text, 
  29.         int16 length, FixedMatrix *matrix);
  30.     int16 (*xyshowText)(char *text, 
  31.         int16 length, FixedMatrix *matrix,
  32.         Fixed *displacements);
  33.     } ATMProcs3;
  34.  
  35. #define ATMProcsStatusCode 0
  36.  
  37. /*
  38.     initATM initializes ATMInterface, returns 
  39.     1 if and only if ATM is available and
  40.     the procsets are correctly initialized
  41. */
  42. int16 initATM(void);
  43.  
  44. /* 
  45.     fontAvailableATM returns 1 if and 
  46.     only if ATM can image the specified 
  47.     family and style 
  48. */
  49. int16 fontAvailableATM(int16 family, 
  50.     int16 style);
  51.  
  52. /* 
  53.     showTextATM shows length characters
  54.     starting at text transformed by 
  55.     the specified matrix 
  56.     Returns the number of characters not shown */
  57. /*     Matrix maps one point character space to device space, */
  58. /* relative to current pen position */
  59. /* Matrix's tx and ty components are updated */
  60. int16 showTextATM(char *text, int16 length, 
  61.     FixedMatrix *matrix);
  62.  
  63. /*
  64.     Show length characters starting 
  65.     at text transformed by the specified 
  66.     matrix.
  67.     Matrix maps one point character space 
  68.     to device space, relative to current pen position.
  69.     Matrix's tx and ty components are updated.
  70.     Character x and y widths are specified 
  71.     by displacements.
  72.     Returns the number of characters not shown.
  73. */
  74. int16 xyshowTextATM(char *text, int16 length, 
  75.     FixedMatrix *matrix, Fixed *displacements);
  76. /* 
  77. *    end listing of ATMInterface.h 
  78. *
  79. */
  80.